<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="utf-8"%>
<%@ include file="/public/pathvariable.jsp" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
		<meta http-equiv="pragma" content="no-cache"> 
		<meta http-equiv="Cache-Control" content="no-cache, must-revalidate"> 
		<meta http-equiv="expires" content="0">
        <title>信息方案名称编辑</title>
        <link rel="stylesheet" href="<%=basePath %>css/style.css">
        <link rel="stylesheet" href="<%=basePath %>css/msg.css">
        <link rel="stylesheet" href="<%=basePath %>css/ui_base.css">
        <link rel="stylesheet" href="<%=basePath %>css/f_style.css">
        <link rel="stylesheet" href="<%=basePath %>css/public.css">
    </head>
    <style>
        textarea:focus {outline: none;}
        .xubox_dialog {height: 45px;}
        .f_ulList3 .f_list span.s04 {cursor: default;}
        .ui_select input.ui_s_t {top: 0px;}
        .ui_select .ui_s_bk a {text-overflow: ellipsis;white-space: nowrap;overflow: hidden;}
    </style>
    <script>
        var basePath = "<%=basePath%>";
    </script>
    <body ng-app="nameEditApp">
        <input type="hidden" id="headUserId" value="${userinfo.userId}" />
        <input type="hidden" id="headUserAccount" value="${userinfo.userAccount}" />

        <div class="right" ng-controller="editCtrl">
            <!--内容区-->
            <div class="msg_info_table">
            	<form name="signup_form" novalidate>
                <table width="100%" border="0" cellspacing="1" cellpadding="0" class="mtable">
                    <tr>
                        <th scope="row" width="120">信息方案名称</th>
                        <td>
                        	<input type="text" class="ui_text disui" ng-model="vm.ifm_name" style="width:220px"
                        		ng-class="{error: signup_form.name.$dirty && signup_form.name.$invalid}" name="name" ng-minlength="1" ng-maxlength="8"  required> 
                        	<span style="color:red;margin-left:10px;">*</span>
							<span class="error">
							    <small class="error" ng-show="signup_form.name.$error.required||signup_form.name.$error.minlength||signup_form.name.$error.maxlength" style="color:red">
						            &nbsp;信息方案名称限于1-8个字符！
							    </small>
							</span>
                        </td>
                    </tr>
                    <tr>
                        <th scope="row" width="80">信息方案备注</th>
                        <td style="padding:10px 20px;">
                        	<textarea type="text" class="ui_text disui" ng-model="vm.ifm_note" style="width:340px;min-height:50px;height:auto;float:left;vertical-align:middle;line-height:1.5" 
                        		ng-class="{error: signup_form.note.$dirty && signup_form.note.$invalid}" name="note" ng-maxlength="50"></textarea>
                        	<span class="error">
							    <small class="error" ng-show="signup_form.note.$error.maxlength" style="color:red">
						            &nbsp;　* 信息方案备注限于0-50个字符！
							    </small>
							</span>
                        </td>
                    </tr>
                    <tr style="position: relative; z-index:6" ng-show="editFlag">
                        <th scope="row">所属组织</th>
                        <td style="height：26px;line-height: 26px;padding-top:8px;padding-bottom: 8px;">
                            <input type="hidden" ng-model="vm.groupId" id="groupIds">
                            <div ag-select style="display:inline" ajaxs="<%=basePath%>group/selectAll" group-id="vm.groupId" ng-show="eShow"></div>
                        	 <input type="text" ng-show="!eShow" class="ui_text disui" id="groupNameId" style="width:220px" readonly>
                        </td>
                    </tr>
                    <tr style="position: relative; z-index:5" ng-show="showFlag">
                        <th scope="row">所属类别</th>
                        <td style="height：26px;line-height: 26px;padding-top:8px;padding-bottom: 8px;">
                            <div class="ui_select selectListObj" style="float:left;" id="categories">
                                <input type="hidden" id="categoriesValue" value="" />
                                <span class="ui_s_t" id="categoriesName"></span>
                                <div class="ui_s_bk" style="display: none;z-index:99;">
                                	<a href="javascript:void(0)" type="领导">领导</a>
                                    <a href="javascript:void(0)" type="公司">公司</a>
                                    <a href="javascript:void(0)" type="产品">产品</a>
                                    <a href="javascript:void(0)" type="行业">行业</a>
                                    <a href="javascript:void(0)" type="竞合">竞合</a>
                                    <a href="javascript:void(0)" type="政策">政策</a>
                                    <a href="javascript:void(0)" type="专题">专题</a>
                                </div>
                            </div>
                            <span style="color:red;margin-left:14px;" ng-show="vshow">*</span>
                        </td>
                    </tr>
                    <tr ng-show="showFlag">
                        <th scope="row" width="80">所属类别名称</th>
                        <td >
                        	<input type="text" class="ui_text disui" ng-model="vm.ifm_categoryName" style="width:220px" id="categoryNameId" 
                        		ng-class="{error: signup_form.categoryName.$dirty && signup_form.categoryName.$invalid}" name="categoryName" ng-minlength="0" ng-maxlength="8"  required>
                        	<span style="color:red;margin-left:10px;" ng-show="vshow">*</span>
                        	<span class="error" ng-show="vshow">
							    <small class="error" ng-show="signup_form.categoryName.$error.required||signup_form.categoryName.$error.maxlength" style="color:red">
						            &nbsp;所属类别名称限于8个字符！
							    </small>
							</span>
                        </td>
                    </tr>             
                    <tr style="position: relative; z-index:5">
                        <th scope="row">是否推送</th>
                        <td style="height：26px;line-height: 26px;padding-top:8px;padding-bottom: 8px;">
                            <div class="ui_select selectListObj" style="float:left;" id="pushselect">
                                <input type="hidden" id="addIsSign" value="0" />
                                <span class="ui_s_t" id="addIsSignName"></span>
                                <div class="ui_s_bk" style="display: none;z-index:98;">
                                	<a href="javascript:void(0)" type="1">是</a>
                                    <a href="javascript:void(0)" type="0">否</a>
                                </div>
                            </div>
                            <div class="ts" style="display:inline-block;float:left;margin-left:50px;">
                                <div style="float:left"><span id="push_app" class="ui_checkbox" ng-click="domAjax2($event.target)"></span>&nbsp;app&nbsp;&nbsp;</div>
                                <div style="float:left; margin-left:30px;"><span id="push_msg" class="ui_checkbox" ng-click="domAjax2($event.target)"></span>&nbsp;短信&nbsp;</div>
                                <!--<div style="float:left; margin-left:30px;"><span class="ui_checkbox" ng-click="domAjax2($event.target)"></span>&nbsp;邮件&nbsp;</div>-->
                            </div>
                        </td>
                    </tr>
<!--                     <tr style="position: relative; z-index:5">
                        <th scope="row">是否敏感</th>
                        <td style="height：26px;line-height: 26px;padding-top:8px;padding-bottom: 8px;">
                            <div class="ui_select selectListObj" style="float:left;" id="sensitiveselect">
                                <input type="hidden" id="addIsSensitive"  value="0" />
                                <span class="ui_s_t" ></span>
                                <div class="ui_s_bk" style="display: none;">
                                	<a href="javascript:void(0)" type="1">是</a>
                                    <a href="javascript:void(0)" type="0">否</a>
                                </div>
                            </div>
                        </td>
                    </tr> -->
                </table>
                </form>
                <div class="btn_bk" ng-if="!editHidden">
                    <a href="javascript:void(0)" class="ui_btn yellow release" ng-disabled="signup_form.$invalid" ng-click="domAjax('release')" id="publish">确定</a>
                    <a href="javascript:void(0)" class="ui_btn green" ng-click="cancel('')">取消</a>
                </div>
                <div class="btn_bk" ng-if="editHidden">
                    <a href="javascript:void(0)" class="ui_btn release yellow"  ng-click="domAjax('next')" id="next">下一步</a>
                    <a href="javascript:void(0)" class="ui_btn green" ng-click="cancel('')">取消</a>
                </div>
            </div>
            <!--内容区-->
        </div>

        <script src="<%=basePath %>js/jquery.min.1.8.2.js"></script>
        <script src="<%=basePath %>js/jquery.form.js"></script>
        <script src="<%=basePath %>js/jquery.easing.1.3.js"></script>
        <script src="<%=basePath %>js/layer/layer.min.js"></script>
        <script src="<%=basePath %>js/angular.min.1.2.5.js"></script>
        <script src="<%=basePath %>js/laydate/laydate.js"></script>
        <script src="<%=basePath %>js/config.js"></script>
        <script src="<%=basePath %>js/userSession.js"></script>

        <link rel="stylesheet" href="<%=basePath %>js/Jcrop/css/jquery.Jcrop.css">
        <script src="<%=basePath %>js/Jcrop/js/jquery.Jcrop.js" defer></script>
        <script src="<%=basePath %>programme/js/angular.programmeNameEdit.js"></script>
    </body>

</html>